public class Test {
    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root = binaryTree.create();

        binaryTree.inOrder(root);
        System.out.println();
        binaryTree.postOrder(root);
        System.out.println();
        int size = binaryTree.getLeafSize(root);
        System.out.println(size);
        int count = binaryTree.getKLevelNodeCount(root, 3);
        System.out.println(count);
        System.out.println(binaryTree.getHeight(root));
    }
}
